package weaver.interfaces.hitech.duss.utils;

import weaver.conn.RecordSet;
import weaver.general.Util;

/**
 * @Title: ecology-9-demo
 * @Company: 泛微软件
 * @author: weaver.Dusongsong
 * @version: 1.0
 * @CreateDate: 2020-07-02
 * @Description: ${description}
 * @ModifyLog:
 **/

public class TransMethodUitl {
    //姓名转换方法
    public static String transIDtoLastname(String param){
        RecordSet rs = new RecordSet();
        rs.executeQuery("select id,lastname from hrmresource where id='"+param+"'");
        if(rs.next()){
            String lastname = Util.null2String(rs.getString("lastname"));
            return lastname;
        }else {
            return "";
        }
    }
}
